let arr=[1,2,3,1,2,2]
console.log(...new Set(arr));